﻿using System;
using System.Collections.Generic;
using System.Data.OleDb;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace ServersList1
{
    class Function
    {
        //0. feilds ,,, 
        
        //1. property ,, 
         
        //2. method ,, 
     
        public string getserverpage(string link)
        {

            WebRequest request = WebRequest.Create(link);
            request.Method = "GET";
            WebResponse response = request.GetResponse();
            Stream stream = response.GetResponseStream();
            StreamReader reader = new StreamReader(stream);
            string content = reader.ReadToEnd();
            reader.Close();
            response.Close();

            return content;
        }

    }
}
